# $Id: PKGBUILD 87506 2013-04-02 00:24:43Z bgyorgy $
# Maintainer: Balló György <ballogyor+arch at gmail dot com>

_pkgname=dirspec
pkgname=python2-dirspec
pkgver=4.2.0
pkgrel=1
pkgdesc="Python library which provides support for handling directories as described in the XDG Base Directory and User Folders specifications"
arch=('any')
url="https://launchpad.net/dirspec"
license=('LGPL')
depends=('python2')
makedepends=('python2-distribute')
source=(https://launchpad.net/$_pkgname/stable-4-2/$pkgver/+download/$_pkgname-$pkgver.tar.gz)
md5sums=('dbc8ec3a32754735c5ab204e8924b96d')

build() {
  cd "$srcdir/$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$srcdir/$_pkgname-$pkgver"

  python2 setup.py install --root=$pkgdir/ --optimize=1
}
